Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin: je peux modifier le nom et les réseaux d'un jeton d'API #9940

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

LeSim
Copy link
Member

@LeSim LeSim commented Jan 26, 2024

No description provided.

Copy link

what-the-diff bot commented Jan 26, 2024

PR Summary

  • Enhanced Token Management
    A new process for managing API tokens has been introduced. This includes new abilities added to the relevant controller in the code that allow for secure editing, updating, and removal of tokens (api_tokens_controller.rb).

  • Token Verification Function
    A new function has been created (eternal? method in api_token.rb file) that helps in checking properties of tokens to ensure their validity.

  • UI Updates
    Changes have been made to the user interface, including a new page to allow for easier token management (edit.html.haml file, api_token_component.html.haml file). Part of these changes also included removing unnecessary files to streamline operations (index.turbo_stream.haml file).

  • Web Route Adjustments
    Our web pathways have been adjusted to accommodate the new edit and update functionalities by modifying the routes.rb file to include edit and update actions in api_tokens resource.

  • Controller Tests
    New tests are introduced to ensure the update action functions correctly in the api_tokens_controller_spec.rb file. These ensure that the new functionalities work as intended.

@LeSim LeSim force-pushed the can_edit_again_a_token branch from 35508d7 to 5eaa957 Compare January 29, 2024 09:10
@LeSim LeSim enabled auto-merge January 29, 2024 09:10
@LeSim LeSim added this pull request to the merge queue Jan 29, 2024
Merged via the queue into main with commit e12c663 Jan 29, 2024
15 checks passed
@LeSim LeSim deleted the can_edit_again_a_token branch January 29, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants